package com.manager.modelserver.controller;

import com.manager.modelserver.service.SubTotalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/sub")
@ResponseBody
public class SubTotalController {
    @Autowired
    private SubTotalService sub;
    @PostMapping("/subtotal")
    public String subTotal(@RequestParam(value = "rows1") String rows1)  {
        return sub.subTotal(rows1);
    }
}
